<?php
// +-------------------------------------------------------------------
// |
// +-------------------------------------------------------------------
// | Copyright (c) 2009-2016 All rights reserved.
// +-------------------------------------------------------------------
namespace Service\Api\V1;

class UserServiceTypeList
{
    public $login = true; //是否需要登录才能访问该接口
    public $title = "预约服务类型列表ok";
    public $group = '物业服务';
    public $desc = "";

    public $input = [
    ];

    public $output = [
        'list' => [
            [
                'id' => 'label=id;',
                'name' => 'label=类型名称;',
            ]
        ]
    ];

    public function run($param, $uid)
    {
        $list = M('service_type')
            ->order('sort ASC')->select();
        return [
            'list' => $list,
        ];
    }
}
